﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LumenWorks.Framework.IO.Csv;
using System.IO;

namespace Secams.model
{
    /// <summary>
    /// This class is the represtention of the actual sequence of instances of scenarios
    /// </summary>
    public class ScenarioInstanceSequence
    {
        protected string _name = null;
        protected List<ScenarioInstance> _scenarioInstances = new List<ScenarioInstance>();

        public ScenarioInstanceSequence(string name)
        {
            _name = name;
        }

        public string name
        {
            get { return _name; }
        }

        public int getSize()
        {
            return _scenarioInstances.Count;
        }

        public ScenarioInstance getScenarioInstance(int idx)
        {
            return _scenarioInstances[idx];
        }

        public Scenario getScenario(int idx)
        {
            return getScenarioInstance(idx).scenario;
        }

        public int getScenarioMode(int idx)
        {
            return getScenarioInstance(idx).mode;
        }

        public void addScenario(Scenario scenario, int mode, int feedbackLevel, int delayBetweenEvents)
        {
            _scenarioInstances.Add(new ScenarioInstance(scenario, mode, feedbackLevel, delayBetweenEvents));
            //_scenarioModes.Add(mode);
        }

    }
}
